﻿using System;

namespace _5E.Utils.CheckHelper
{
    /// <summary>
    /// 程序说明：验证特性
    /// 创建作者：ahl
    /// 创建时间：2012-04-01
    /// </summary>
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
    class VerificationAttribute : Attribute
    {
        #region 属性

        private string m_Type = null;
        public string Type { get { return this.m_Type; } }

        private string m_Rule = null;
        public string Rule { get { return this.m_Rule; } }

        #endregion

        #region 构造函数

        public VerificationAttribute(string type, string rule)
        {
            this.m_Type = type;
            this.m_Rule = rule;
        }

        #endregion
    }
}
